package com.xuecheng.framework.domain.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by admin on 2018/2/10.
 */
@Data
@ToString
@Entity
@Table(name="course_pic")
@ApiModel(value = "课程图片表")
@GenericGenerator(name = "jpa-assigned", strategy = "assigned")
public class CoursePic implements Serializable {


    @Id
    @GeneratedValue(generator = "jpa-assigned")
    @ApiModelProperty(name = "courseid",value = "课程id")
    private String courseid;
    @ApiModelProperty(name = "pic",value = "图片路径")
    private String pic;

}
